package com.iotechn.unimall.data.dto.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 入库
 *
 * @author kyms
 * @date 2020-06-24 17:21
 */

@ExcelTarget("skuPurchaseSummaryDTO")
@Data
public class SkuPurchaseSummaryDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long skuId;
    @Excel(name = "条码", width = 15d)
    private String barCode;
    @Excel(name = "商品名称", width = 15d)
    private String spuTitle;
    @Excel(name = "规格", width = 15d)
    private String skuTitle;
    @Excel(name = "单位")
    private String unit;

    @Excel(name = "入库总数")
    private Float inNum=0f;
    @Excel(name = "单价")
    private Float price=0f;
    @Excel(name = "总额", width = 15d)
    private Float totalPrice=0f;
    @ExcelEntity(name = "每日详情", show = true)
    private List<ExcelExportEntity> entity = new ArrayList<ExcelExportEntity>();

}
